import { Button } from "antd"
import { useState } from "react"

const StateDemo = () => {
  const [count, setCount] = useState(0)
  return (
    <>
      <h3>--组件状态</h3>
      <Button onClick={() => setCount(count + 1)}>
        useState count: {count}
      </Button>
    </>
  )
}

export default StateDemo
